package com.cndw.kungfu.model.goods.domain;

import java.util.HashMap;
import java.util.Map;

/**
 * 
 * 装备打孔
 * 
 * @author <a href="mailto:whz-work@163.com">汪洪州</a>
 * 
 * @since 1.0 Create on 2011-5-30
 */
public class ModeGoodsHole {

	/**
	 * 第几个孔
	 */
	private int hole;
	/**
	 * 消耗的道具
	 */
	private int goodsId;
	/**
	 * 消耗的道具数量
	 */
	private int counts;
	/**
	 * 成功率
	 */
	private int ratio;
	/**
	 * 消耗的银两
	 */
	private int asset;

	private static Map<Integer, ModeGoodsHole> holeMap = new HashMap<Integer, ModeGoodsHole>();

	static {
		holeMap.put(1, new ModeGoodsHole(1, 103001, 1, 100, 8300));
		holeMap.put(2, new ModeGoodsHole(2, 103001, 1, 100, 33400));
		holeMap.put(3, new ModeGoodsHole(3, 103002, 1, 100, 75300));
		holeMap.put(4, new ModeGoodsHole(4, 103002, 1, 100, 134000));
		holeMap.put(5, new ModeGoodsHole(5, 103003, 1, 100, 209500));
	}

	private ModeGoodsHole(int hole, int goodsId, int counts, int ratio, int asset) {
		this.hole = hole;
		this.goodsId = goodsId;
		this.counts = counts;
		this.ratio = ratio;
		this.asset = asset;
	}

	public static ModeGoodsHole get(int hole) {
		return holeMap.get(hole);
	}

	public int getHole() {
		return hole;
	}

	public void setHole(int hole) {
		this.hole = hole;
	}

	public int getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}

	public int getCounts() {
		return counts;
	}

	public void setCounts(int counts) {
		this.counts = counts;
	}

	public int getRatio() {
		return ratio;
	}

	public void setRatio(int ratio) {
		this.ratio = ratio;
	}

	public int getAsset() {
		return asset;
	}

	public void setAsset(int asset) {
		this.asset = asset;
	}

}
